﻿<Window x:Class="CECB.Email_Window"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="CECB - Email"     x:Name="Window"
        Width="500" Height="350"
        WindowStartupLocation="CenterScreen" WindowState="Normal" ResizeMode="NoResize" Icon="/Images/cecb1.ico" xmlns:my="http://schemas.microsoft.com/winfx/2006/xaml/presentation/ribbon">
    <Window.Background>
        <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
            <GradientStop Color="#FF144BC7" Offset="0" />
            <GradientStop Color="#FFB2FCFC" Offset="1" />
        </LinearGradientBrush>
    </Window.Background>
    <Grid >
        <StackPanel VerticalAlignment="Top" HorizontalAlignment="Center" Margin="36,0,54,0" Width="410" Height="300">
            <WrapPanel VerticalAlignment="Top" Height="50">
                <Label Content="Send Emails" Height="auto" HorizontalAlignment="Center" Margin="0,10,0,0"  VerticalAlignment="Center" Width="auto" FontSize="20" FontStretch="Normal" FontStyle="Normal" FontWeight="Black" Foreground="#FFEFEFEF"></Label>

            </WrapPanel>
            <WrapPanel VerticalAlignment="Top">
                <ComboBox Height="23" HorizontalAlignment="Left" Margin="230,7,0,0" Name="comboBox_MemberFirstName" VerticalAlignment="Top" Width="170" DisplayMemberPath="EmpfName" SelectedValuePath="EmpReference" DropDownOpened="comboBox_MemberFirstName_DropDownOpened" SelectionChanged="comboBox_MemberFirstName_SelectionChanged" />
                <Label Content="Member Name" Height="28" Name="label0" HorizontalAlignment="Left" Margin="25,-22,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            </WrapPanel>
            <WrapPanel VerticalAlignment="Top">
                <Label Height="23" HorizontalAlignment="Left" Margin="230,7,0,0" Name="label_MemberReference" VerticalAlignment="Top" Width="120"  >
                     
                </Label>
                <Label Content="Member Reference" Height="28" Name="label1" HorizontalAlignment="Left" Margin="25,-22,0,0" VerticalAlignment="Top"  FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            </WrapPanel>
            
            <WrapPanel VerticalAlignment="Top">
                <Button Background="{x:Null}" BorderBrush="{x:Null}" Margin="190,0,0,0"  Height="44"   Name="CodeButton" Width="190" Click="button_Generate_Click">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <Image Grid.Column="0" Height="32" Margin="2" Source="images\codeicon.png" Width="32" />
                        <StackPanel Grid.Column="1" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Center">
                            <TextBlock Margin="0" Padding="0" Text="Geanarate Activation Code" TextWrapping="NoWrap" />
                        </StackPanel>
                    </Grid>
                </Button>
            </WrapPanel>
              
            <WrapPanel VerticalAlignment="Top">
                <TextBox Height="23" HorizontalAlignment="Left" Margin="230,7,0,0" Name="textBox_Password" VerticalAlignment="Top" Width="170"  />
                <Label Content="Activation Code" Height="28" Name="label4" HorizontalAlignment="Left" Margin="25,-22,0,0" VerticalAlignment="Top"  FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            </WrapPanel>
            <WrapPanel VerticalAlignment="Top">
                <ComboBox Height="23" HorizontalAlignment="Left" Margin="230,7,0,0" Name="comboBox_MemberEmail" VerticalAlignment="Top" Width="170" DisplayMemberPath="Emp_Email" SelectedValuePath="Emp_Email" DropDownOpened="comboBox_MemberEmail_DropDownOpened" />
                <Label Content="Member Email" Height="28" Name="label5" HorizontalAlignment="Left" Margin="25,-22,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            </WrapPanel>
            <StackPanel Name="stackPanel14" Orientation="Horizontal" Margin="0,10,0,0" HorizontalAlignment="Right" ClipToBounds="False">

                <Button Background="{x:Null}" BorderBrush="{x:Null}"  Height="44" Margin="2,0" Name="SendButton" Width="108" Click="button_SendMail_Click">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <Image Grid.Column="0" Height="32" Margin="2" Source="images\sendemailIcon.png" Width="32" />
                        <StackPanel Grid.Column="1" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Center">
                            <TextBlock Margin="0" Padding="0" Text="Send Email" TextWrapping="NoWrap" />
                        </StackPanel>
                    </Grid>
                </Button>
                <Button Background="{x:Null}" BorderBrush="{x:Null}"   Height="44" Margin="2,0" Name="CancelButton" Width="98" Click="CancelButton_Click">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <Image Grid.Column="0" Height="32" Margin="2" Source="images\sendemailcancelicon.png" Width="32" />
                        <StackPanel Grid.Column="1" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Center">
                            <TextBlock Margin="0" Padding="0" Text="Cancel" TextWrapping="NoWrap" />
                        </StackPanel>
                    </Grid>
                </Button>
            </StackPanel>
            <WrapPanel VerticalAlignment="Top"></WrapPanel>
        </StackPanel>
    </Grid>
</Window>
